package us.ajg0702.leaderboards.libs.hikari.metrics.micrometer;

import io.micrometer.core.instrument.MeterRegistry;
import us.ajg0702.leaderboards.libs.hikari.metrics.IMetricsTracker;
import us.ajg0702.leaderboards.libs.hikari.metrics.MetricsTrackerFactory;
import us.ajg0702.leaderboards.libs.hikari.metrics.PoolStats;


public class MicrometerMetricsTrackerFactory
        implements MetricsTrackerFactory {
    private final MeterRegistry registry;

    public MicrometerMetricsTrackerFactory(MeterRegistry registry) {
        this.registry = registry;
    }


    public IMetricsTracker create(String poolName, PoolStats poolStats) {
        return new MicrometerMetricsTracker(poolName, poolStats, this.registry);
    }
}


*Location:D:\User\Xuan\Downloads\ajLeaderboards-1.3.3.jar\\us\ajg0702\leaderboards\libs\hikari\metrics\micrometer\MicrometerMetricsTrackerFactory.class
 *Java compiler version:8(52.0)
         *JD-Core Version:1.1.3
